<!-- search area   -->
<div class="row searchLineWrap" id="recruitDivId">
    <form class="form-horizontal" method="post" action="${cxt!}/admin/workavailability/list" id="recruitFormId">
        <div class="col-md-12">
            <div class="row">
                <div class="col-md-3">
                    <div class="form-group">
                        <label class="col-md-5 control-label">${_res["Workavailability.position"]}</label>
                        <div class="col-md-7">
                            <input type="text" class="form-control" name="workavailability.l_position" placeholder="${_res['Workavailability.position']}" value="${paramMap['workavailability.l_position']}" >
                        </div>
                    </div>
                </div>            
                
                <div class="col-md-6"></div>        
            
                <div class="col-md-3">
                    <div class="form-group">
                        <% if(hasPrivilegeUrl("toCareer")){ %>
                           <button type="button" class="btn btn-primary" onclick="ajaxForm('content','recruitFormId')"> <i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}</button>
                        <% } %>
                    </div>
                </div> 
            </div>
        </div>
    </form>
</div>
<div class="row searchLineWrap">
	<p>
		<% if(hasPrivilegeUrl("toRecruitAdd")){ %>
			<a href="javascript:void(0);" onClick="ajaxContent('/admin/workavailability/toRecruitAdd');" class="btn btn-primary pull-left">${_res["project.add"]} </a>
			<div class="clearfix"></div>
		<% } %>
	</p>
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>${_res["Workavailability.position"]}</th>
                <th>${_res["Workavailability.location"]}</th>
                <!-- <th>${_res["Workavailability.contractperiod"]}</th> -->
                <th>${_res["Workavailability.status"]}</th>
                <th>${_res["Workavailability.createtime"]}</th>
                <th>${_res["system.operator"]}</th>
            </tr>
        </thead>
        <tbody>
            <% for(career in splitPage.list!){
            	var statusNum = career.status!;
            	if(statusNum! != '2'){ %>
	            <tr>
	                <td>${career.position!}</td>
	                <td>${career.location!}</td>
	                <!-- <td>${career.contractperiod!}</td> -->
	                <td>${career.status!}</td>
	                <td>${career.createtime!}</td>
	                <td>
	                    <% if(hasPrivilegeUrl("recruitDelete")){ %>
	                        <button type="button" class="btn btn-sm btn-link" onClick="ajaxDelete('/admin/workavailability/recruitDelete/${career.id!}')">${_res["system.delete"]}</button>
	                    <% } %>
	                    <% if(hasPrivilegeUrl("toRecruitUpdate")){ %>
	                        <button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/workavailability/toRecruitUpdate/${career.id!}')">${_res["system.edit"]}</button>
	                    <% } %>
	                </td>
	            </tr>
            <% } 
            } %>
        </tbody>
    </table>
    <div id="splitPageDiv"><#page formId="academyCaseForm" /></div>
    <#nav />
</div>